﻿@model Enterprise.Management.ViewModels.ContractViewModel
@{ var dictBll = new DictBLL();}

@{
    ViewBag.Title = "Create";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@section header{
<script src="@Url.Content("~/Scripts/ContractController/Edit.js")" type="text/javascript"></script>
}
@Html.Navigation("合同管理", Url.Action("Index"), "新建")
@Html.ValidationSummary(true)
@using (Html.BeginForm("Create", "Contract", FormMethod.Post, new { enctype="multipart/form-data" }))
{
    <fieldset>
        <legend>合同管理</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.LCInf_SubTypeID)
        </div>
        <div class="editor-field">
            @Html.DropDownListFor(model => model.LCInf_SubTypeID, new SelectList(dictBll.GetDictionaries(DictType.Contract), "Dict_Value", "Dict_Name"), "-请选择-")
            @Html.ValidationMessageFor(model => model.LCInf_SubTypeID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.LCInf_ExpiredDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.LCInf_ExpiredDate)
            @Html.ValidationMessageFor(model => model.LCInf_ExpiredDate)
        </div>
        <br />
        <input type="file" name="FileUpload1" /><br />
        <input type="submit" name="Submit" id="Submit" value="提交" />
    </fieldset>
}

